<?php
class dt_impresora extends toba_datos_tabla
{
	function get_listado()
	{
		$sql = "SELECT
			t_i.id_impresora,
			t_i.id_tipo,
			t_i.marca,
			t_i.modelo,
			t_i.detalle,
			inventario.id_terminal as id_terminal_nombre
		FROM
			impresora as t_i	LEFT OUTER JOIN inventario as inventario ON (t_i.id_terminal = inventario.id_terminal)
		ORDER BY marca";
		return toba::db('fce')->consultar($sql);
	}

}

?>